package com.sirui.cloud.oc.openFeign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "account")
//@FeignClient(name = "ac1", url = "http://localhost:8991")
public interface AccountPayFeign {

	@RequestMapping("account/pay")
	public String pay();

	@RequestMapping("account/debit")
	public int debit(@RequestParam String userId, @RequestParam int money);

}
